package com.bawei.websocketdemo.test

import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.EditText
import com.bawei.websocketdemo.App
import com.bawei.websocketdemo.R
import java.net.URI

class WebSocketActivity : AppCompatActivity() {
    private lateinit var et:EditText
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_web_socket)
        et = findViewById(R.id.et)
    }

    fun send(view: View) {
        App.websocket.sendMsg(et.text.toString())
    }
}